package org.example.im.common.serialize;

/**
 * @author dingrui
 * @since 2022/2/10
 * @description
 */
public interface Serializer {

    // 策略标识
    SerializerType type();

    byte[] serialize(Object o);

    <T> T deserialize(byte[] bytes, Class<T> clazz);
}
